<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Copies large object</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.oci-get-implicit-resultset.html">« oci_get_implicit_resultset</a></li>
      <li style="float: right;"><a href="function.oci-lob-is-equal.html">oci_lob_is_equal »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.oci8.html">OCI8 函数</a></li>
    <li>Copies large object</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.oci-lob-copy" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">oci_lob_copy</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8, PECL OCI8 &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">oci_lob_copy</span> &mdash; <span class="dc-title">Copies large object</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.oci-lob-copy-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>oci_lob_copy</strong></span>(<span class="methodparam"><span class="type"><a href="class.ocilob.html" class="type OCILob">OCILob</a></span> <code class="parameter">$to</code></span>, <span class="methodparam"><span class="type"><a href="class.ocilob.html" class="type OCILob">OCILob</a></span> <code class="parameter">$from</code></span>, <span class="methodparam"><span class="type">?</span><span class="type"><span class="type">int</span><span class="type"></span></span> <code class="parameter">$length</code><span class="initializer"> = <strong><code>null</code></strong></span></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Copies a large object or a part of a large object to another large object.
   Old LOB-recipient data will be overwritten.
  </p>
  <p class="para">
   If you need to copy a particular part of a LOB to a particular position of
   a LOB, use <span class="function"><a href="ocilob.seek.html" class="function">OCILob::seek()</a></span> to move LOB internal pointers.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.oci-lob-copy-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">to</code></dt>

     <dd>

      <p class="para">
       The destination LOB.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">from</code></dt>

     <dd>

      <p class="para">
       The copied LOB.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">length</code></dt>

     <dd>

      <p class="para">
       Indicates the length of data to be copied.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.oci-lob-copy-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>true</code></strong>， 或者在失败时返回 <strong><code>false</code></strong>。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.oci-lob-copy-changelog">
  <h3 class="title">更新日志</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>版本</th>
      <th>说明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0, PECL OCI8 3.0.0</td>
      <td>
       <code class="parameter">length</code> is now nullable.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.oci-lob-copy-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    The OCILob class was called OCI-Lob prior to PHP 8 and PECL OCI8 3.0.0.
   </p>
  </p></blockquote>
 </div>


</div></div></div></body></html>